/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.inheritance.model;

import za.ac.cput.inheritance.service.LoanInterest;

/**
 *
 * @author Enkosi
 */
public abstract class Student implements LoanInterest{
    protected String name;
    protected String surname;
    protected double loanAmount;
    
    public Student(String name, String surname, double loanAmount){
        this.name = name;
        this.surname = surname;
        this.loanAmount = loanAmount;
    }    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

    /**
     * @return the loanAmount
     */
    public double getLoanAmount() {
        return loanAmount;
    }

    /**
     * @param loanAmount the loanAmount to set
     */
    public void setLoanAmount(double loanAmount) {
        this.loanAmount = loanAmount;
    }
    
    @Override
    public String toString(){
        return name + " " + surname + " R" + loanAmount;
    }
}
